package com.martini.satoken01.config;

import com.martini.satoken01.service.DefaultLimitInfoCacheServiceImpl;
import com.martini.satoken01.service.LimitInfoCacheService;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * 系统限制信息缓存服务配置
 *
 * @author martini at 2021/12/17 23:14
 */
@SpringBootConfiguration
public class LimitInfoCacheConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public LimitInfoCacheService limitInfoCacheService() {
        return new DefaultLimitInfoCacheServiceImpl();
    }
}
